<?php
/**
 * Created by PhpStorm.
 * User: anziguoer@sina.com
 * Date: 2015/4/29
 * Time: 12:35
 */

include './ApiClient.php';

$arr = array(
    'user' => 'anziguoer',
    'passwd' => 'yangyulong'
);
// $url = 'http://localhost/restAPI/restServer.php';
$url = 'http://localhost/restAPI/testServer.php/user/123';

$rest = new restClient($url, $arr, 'get');
$info = $rest->doRequest();

//获取curl中的状态信息
$status  = $rest->status;
echo '<pre>';
print_r($info);
echo '</pre>';

